package cn.schoolwow.workflow.module.common.domain;

/**工作流任务类型*/
public enum WorkFlowTaskType {
    AuditTask(0),
    AddBeforeSign(1),
    AddAfterSign(2);

    public int value;

    WorkFlowTaskType(int value) {
        this.value = value;
    }

    public static WorkFlowTaskType getWorkFlowTaskTypeByValue(int value){
        WorkFlowTaskType[] workFlowTaskTypes = WorkFlowTaskType.values();
        for(WorkFlowTaskType workFlowTaskType:workFlowTaskTypes){
            if(workFlowTaskType.value==value){
                return workFlowTaskType;
            }
        }
        throw new IllegalArgumentException("不支持的工作流任务类型值!值:"+value);
    }
}
